package component

import "gitee.com/fierce_wolf/go-fox-edge-common/commEntity"

type EntityChangedNotifyVO struct {
	Method string
	Key    string
	Entity commEntity.IEntity
}

func (e *EntityChangedNotifyVO) BuildMap() map[string]interface{} {
	result := make(map[string]interface{})
	result["method"] = e.Method
	result["key"] = e.Key
	if e.Entity != nil {
		result["entity"] = commEntity.BuildMap(e.Entity)
	}

	return result
}
